//
//  YQSearchBaseBar.h
//  Pension
//
//  Created by tbb on 2019/6/4.
//  Copyright © 2019  YIQI. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol YQSearchBaseBarDelegate <NSObject>

@optional
- (void)yq_searchBarSearchButtonClicked:(UISearchBar *)searchBar;
-(void)yq_textFieldShouldClear:(UITextField *)textField;
-(void)yq_shouldChangeText:(NSString *)text;
- (BOOL)yq_searchBarShouldBeginEditing:(UISearchBar *)searchBar;
@end


@interface YQSearchBaseBar : UIView
@property(nonatomic, weak) id <YQSearchBaseBarDelegate> delegate;
@property (nonatomic, copy) NSString * searchKey;
@property (nonatomic, assign) BOOL resignFirst;
@property (nonatomic, strong) UISearchBar * searchBar;
@property (nonatomic, copy) NSString * placeholderStr;
@end

NS_ASSUME_NONNULL_END
